package org.vestbjergbyggecenter.Model;

public class Manager extends Employee{
private String department;
	
	//Constructor
	public Manager(int managerID, String managerName, long managerCPR, String managerAddress, long managerPostalCode, String managerCity, String managerPhone, String managerUsername, String managerPassword, int managerSalary, String managerDepartment)
	{
		super(managerID, managerName, managerCPR, managerAddress, managerPostalCode, managerCity, managerPhone, managerUsername, managerPassword, managerSalary);
		this.department=managerDepartment;
	}

	/**
	 * @return the department
	 */
	public String getDepartment() {
		return department;
	}

	/**
	 * @param department the department to set
	 */
	public void setDepartment(String department) {
		this.department = department;
	}
	
	//Method to print all orders from the company
	public void printAllOrders()
	{
		System.out.println("List with all the orders in the company: ");
		for(Order order : OrderRecords.getInstance().getOrders())
		{
			System.out.println();
			System.out.println("Order ID:" + order.getId() + " ordering date: " + order.getOrderingDate() + " delivery date: " + order.getDeliveryDate() + " total price: " + order.getTotalPrice() + " status: " + order.getStatus());
		}
	}	
}
